package org.example.spring.carsalemanagementsystem.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.spring.carsalemanagementsystem.entity.Client;
import org.example.spring.carsalemanagementsystem.vo.ClientFuzzyVo;

import java.util.List;

@Mapper
public interface ClientDao {
    void deleteById(@Param("clientid") String clientid);
    void insertOne(Client client);
    void updateById(Client client);
    List<Client> findPages(@Param("pageNum") Long pageNum, @Param("pageSize") Long pageSize);//分页查询所有
    List<Client> findPagesByKey(ClientFuzzyVo vo);//模糊查询
    void changeStatus(@Param("clientid")String clientid,@Param("status")Integer status);
    Client selectById(@Param("clientid") String clientid);
    Long count(); //返回记录条数
    Long countByKey(ClientFuzzyVo vo);//查询符合条件的条数
    List<Client> findList();
}
